import { createStore } from "redux";

let state = {
    isLoading: false
}

let reducer = (state, action) => {
    switch (action.type) {
        case 'toFalse':
            state.isLoading = false;
            break;
        case 'toTrue':
            state.isLoading = true;
            break;
        default:
            break;
    }
    return state;
}


export default createStore(reducer, state);